<!DOCTYPE html>
<html>
<head>
    <title>会员管理:用户资产</title>
    #parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
        <Row :gutter="16">
            <div class="search-group">
                <i-col span="3">
                    <i-input v-model="q.name" @on-enter="query" placeholder="名称"/>
                </i-col>
                <i-col span="3">
                    <i-input v-model="q.phone" @on-enter="query" placeholder="手机号"/>
                </i-col>
                <i-col span="2">
                    <i-select v-model="q.done" placeholder="是否是D-one" filterable>
                        <i-option :value="1" >是</i-option>
                        <i-option :value="0" >否</i-option>
                    </i-select>
                </i-col>
                <i-col span="2">
                    <i-select v-model="q.sort" placeholder="返佣金额" filterable>
                        <i-option :value="1" >从小到大</i-option>
                        <i-option :value="2" >从大到小</i-option>
                    </i-select>
                </i-col>
                <i-col span="2">
                    <i-select v-model="q.sort" placeholder="运动链" filterable>
                        <i-option :value="3" >从小到大</i-option>
                        <i-option :value="4" >从大到小</i-option>
                    </i-select>
                </i-col>
                <i-button @click="query">查询</i-button>
                <i-button @click="reloadSearch">重置</i-button>
            </div>
            <div class="buttons-group">
                #if($shiro.hasPermission("userasset:info"))
                <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;查看</i-button>
                #end
                #if($shiro.hasPermission("userasset:save"))
                <i-button type="info" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</i-button>
                #end
                #if($shiro.hasPermission("userasset:update"))
                <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</i-button>
                #end
                #if($shiro.hasPermission("userasset:delete"))
                <i-button type="error" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</i-button>
                #end
                #if($shiro.hasPermission("userasset:export"))
                <i-button type="warning" @click="exportPro"><i class="fa fa-pencil-square-o"></i>&nbsp;导出</i-button>
                #end
            </div>
        </Row>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>

    <Card v-show="!showList">
        <p slot="title">{{title}}</p>
		<i-form ref="formValidate" :model="tUserAsset" :rules="ruleValidate" :label-width="150">
            <Form-item label="用户id" prop="uid">
                <i-input v-model="tUserAsset.uid" placeholder="用户id" disabled/>
            </Form-item>
            <Form-item label="手机号" prop="phone">
                <i-input v-model="tUserAsset.phone" placeholder="手机号" readonly/>
            </Form-item>
            <Form-item label="用户名" prop="userName">
                <i-input v-model="tUserAsset.userName" placeholder="用户名"/>
            </Form-item>
            <Form-item label="总资金(返佣RMB)" prop="amount">
                <i-input v-model="tUserAsset.amount" placeholder="总资金(返佣)"/>
            </Form-item>
            <Form-item label="资金冻结" prop="frozen">
                <i-input v-model="tUserAsset.frozen" placeholder="资金冻结"/>
            </Form-item>
            <Form-item label="链总数量" prop="coin">
                <i-input v-model="tUserAsset.coin" placeholder="链总数量"/>
            </Form-item>
            <Form-item label="链冻结" prop="coinFrozen">
                <i-input v-model="tUserAsset.coinFrozen" placeholder="冻结"/>
            </Form-item>
            <Form-item label="运动总距离" prop="kilometer">
                <i-input v-model="tUserAsset.kilometer" placeholder="运动总距离"/>
            </Form-item>
            <Form-item label="额外距离" prop="kilometerExtra">
                <i-input v-model="tUserAsset.kilometerExtra" placeholder="额外"/>
            </Form-item>
            <Form-item label="普通距离" prop="kilometerReal">
                <i-input v-model="tUserAsset.kilometerReal" placeholder="普通"/>
            </Form-item>
            <Form-item label="SPC数量" prop="spcCoin">
                <i-input v-model="tUserAsset.spcCoin" placeholder="SPC数量"/>
            </Form-item>
            <Form-item label="SPC收益冻结" prop="spcCoinFrozen">
                <i-input v-model="tUserAsset.spcCoinFrozen" placeholder="SPC收益冻结"/>
            </Form-item>
            <Form-item label="版本" prop="version"  >
                <i-input v-model="tUserAsset.version"  placeholder="" disabled />
            </Form-item>
            <Form-item>
                <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
                <i-button type="warning" @click="reload" style="margin-left: 8px"/>返回</i-button>
                <i-button type="ghost" @click="handleReset('formValidate')" style="margin-left: 8px">重置</i-button>
            </Form-item>
        </i-form>
	</Card>
</div>

<script src="${rc.contextPath}/js/partner/userasset.js?_${date.systemTime}"></script>
</body>
</html>